package com.tvunetworks.center.device.controller.openapi;

import com.tvunetworks.center.common.util.Result;
import com.tvunetworks.center.common.util.ResultUtil;
import com.tvunetworks.center.device.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @program: tvucc-device
 * @description: ReceiverUploadController
 * @author lebronchen
 * @create: 2021-02-07 12:15
 **/
@RestController
@RequestMapping("/receiver/upload")
public class ReceiverUploadController {

    @Autowired
    private DeviceService deviceService;

    /**
     *
     * @param peerId peerId
     * @return Result
     */
    @GetMapping("/initParam")
    public Result initParam(@RequestParam(value = "peerId") String peerId){
        deviceService.initReceiverUploadParam(peerId);
        return ResultUtil.success();
    }
}
